package com.unittec.drainage.provider.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unittec.drainage.provider.manage.entity.RegionGeom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Jason
 * @date 2021/8/6
 */
public interface RegionGeomMapper extends BaseMapper<RegionGeom> {

    /**
     * 批量添加区域坐标
     *
     * @param list
     * @param SRID
     * @return
     */
    int batchInsert(@Param("list") List<RegionGeom> list, @Param("SRID") int SRID);

    /**
     * 查询所有区域坐标
     *
     * @return
     */
    List<RegionGeom> selectAll();

    /**
     * 根据区域id查询所有区域坐标
     *
     * @param regionId
     * @return
     */
    List<RegionGeom> selectAllByRegionId(@Param("regionId") String regionId);

}